home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
serial
/
dim-1.000
/
dim-1
/
dim-1.03
/
src
/
showfile.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-19
|
335b
|
20 lines
#include "dim.h"
void showfile ()
{
FILE
*inf;
char
*cp;
if (! (inf = fopen (DESTGETTY, "r")) )
error ("can't open \"%s\" for reading\n", DESTGETTY);
printf ("Current file \"%s\":\n", DESTGETTY);
while ( (cp = fgetline (inf)) )
printf (" %s\n", cp);
fclose (inf);
}